home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 144_01 / head.hlp < prev    next >
Text File  |  1985-08-19  |  2KB  |  46 lines

  1. **********************************************************************
  2. *                               HEAD                                 *
  3. **********************************************************************
  4. *                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
  5. **********************************************************************
  6. PROGRAM:
  7.     HEAD- Identifies and lists the first 10 lines of a list of files.
  8. USAGE:
  9.     HEAD afn ... [>fid]
  10. FUNCTION:
  11.     
  12.     This accepts a list of file names either on the command line or 
  13.     from the standard input.  File names in the command line may be 
  14.     afn's. File names in the standard input may not be afn's. The 
  15.     files are read in alphabetical order from the command line list 
  16.     first, then, in order from the input list, if any.  As each file 
  17.     is read, the file name is output, a blank line is output, the 
  18.     first 10 lines of the files is output and 2 blank lines are 
  19.     appended. This is similar to CAT in operation.
  20.     
  21.     Unless piping is used or the standard input is assigned to a file 
  22.     (i.e. <file), only the command line arguments will be used as 
  23.     file names.
  24.  
  25. EXAMPLE:
  26.     HEAD *.HLP
  27.     LS *.HLP |HEAD
  28.     
  29.  
  30.  
  31.         Command Line                       
  32.  
  33. ___________________________________  
  34.                                   |  
  35.                                   |  
  36.                                   |  LIST OF AMBIGUOUS FILE NAMES
  37.                                   |  
  38.                                   |                  
  39.                     ______________V______________    
  40.    Standard Input   |                           |   Standard Output
  41. LIST OF FILE NAMES  |                           |  SUMMARY OF FILE TOPS
  42. ------------------->|            HEAD           |----------------------->
  43.                     |                           |
  44.                     |                           |
  45.                     |___________________________|
  46.